<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import= "com.roadmap.common.BaseConst"%>
<%@ page import= "com.roadmap.struts.action.ActionConst"%>
<%@ page import= "com.roadmap.common.RdcResourceBundle"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String user_ssn_id = (String)request.getSession().getAttribute(ActionConst.Aspirant_Id_In_Session);
String user_req_id = (String)request.getParameter(ActionConst.Aspirant_Id_In_Request);
String user_name = (String)request.getAttribute(ActionConst.Aspirant_Name_In_Request);
if(user_req_id == null){
	user_req_id = user_ssn_id;
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/> 
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/home.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/widget.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="dwr/engine.js"> </script>
<script type="text/javascript" src="dwr/util.js"> </script>
<script type="text/javascript" src="dwr/interface/RdcAjax.js"> </script>
<script type="text/javascript" src="res/js/func.js"></script>
<script type="text/javascript" src="res/js/widget.js"></script>
<script type="text/javascript" src="res/js/component.js"></script>
<title><%=user_name%>的主页 | <%=RdcResourceBundle.COMPANY_NAME %></title>

</head>

<body>
	<jsp:include page="/admin/myheader.jsp"></jsp:include>
	
	<!-- main body -->
	<div class="mainbody">
	<div class="myhome">	
		<div class="left-part">
			<div class="slidebar">
				<ul>
					<li><img src="<%=BaseConst.PURIKURA_DIR_BIG + user_req_id %>.gif?temp=<%=System.currentTimeMillis() %>" alt="<%=RdcResourceBundle.COMPANY_NAME %>"/></li>
				</ul>
			</div>
		</div>
		
		<div class="middle-part">
			<div class="homeName">
				<ul><li><h2><bean:write name="<%=ActionConst.Aspirant_Name_In_Request %>"/></h2></li></ul>
			</div>
						
			<div class="section">
				<div style="width:100%;padding:10px;border:2px solid #FFCC00;background:#FFFF99;font-size:14px;">
					<img src="res/images/logo/lock.png"/>只有<%=user_name%>的好友才能访问。您可以<a style="font-size:14px;" href="javascript:sendRequest('<%=user_req_id %>','<%=user_name%>');">加TA为好友</a>
				</div>
			</div>
			
		</div><!-- middle-part -->
		
		<div class="right-part"></div>
		
	</div><!-- myhome -->	
	<div class="clear-div"></div>
	</div><!-- mainbody -->
	
	<jsp:include page="/res/jsp/footer.jsp"></jsp:include>

<script type="text/javascript">
	var reqPopup = new SendRequestPopup();
	function sendRequest(uid, uname){
		reqPopup.setData(uid, uname);
		reqPopup.show();
	}
</script>
</body>

</html>
